package cn.xttc.edu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨磊
 * @since 2022-03-09
 */
@Data
@Accessors(chain = true)
@ToString
@TableName("customer")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户姓名
     */
    @TableField("name")
    private String name;

    /**
     * 客户电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 绑定微信open_id
     */
    @TableField("open_id")
    private String openId;

    /**
     * 账户余额
     */
    @TableField("account")
    private BigDecimal account;

}
